/*****************************************************************************
*   uart.h:  Header file for uart.c
*		ver 1.0	
******************************************************************************/
#include "me32g030.h"

#ifndef __ME32G030_RTC_H__
#define __ME32G030_RTC_H__
#pragma anon_unions
#ifdef __cplusplus
 extern "C" {
#endif

typedef struct{
	uint32_t tc;
	uint16_t year;
	uint8_t month;
	uint8_t day;
	uint8_t hour;
	uint8_t min;
	uint8_t sec;
}RTC_Calendar_TypeDef;

void RTC_Init(uint32_t initialval);
void RTC_SetAlarm(uint32_t secs_after);
void RTC_SetCalendar(uint32_t tc, RTC_Calendar_TypeDef cal);
void RTC_GetCalendar(uint32_t tc, RTC_Calendar_TypeDef cal);

#ifdef __cplusplus
  }
#endif

#endif /* end __ME32G030_DMA_H */
/*****************************************************************************
**                            End Of File
******************************************************************************/
